<template>
<div>
  标题：<input type="text" placeholder="输入内容同步到标题" v-model="title"><br>
  问题：<span>{{question}}</span>
</div>
</template>
<script>
export default{
  data(){
  	return {
  		title:"",
  		question:"",
  	}
  },
  watch:{
  	title(newVal,oldVal){
  		document.title=newVal
  		setTimeout(()=>{
  			this.question=`${newVal}最匹配的问题？`
  		},1000)
  	}
  }
}
</script>